<?php

	// Do not delete these lines
	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
		
		die ('Please do not load this page directly. Thanks!');
	 
	if ( post_password_required() )
	{
		?>
		
			<p class="nocomments"><?php echo __( 'This post is password protected. Enter the password to view comments.', 'responsy' ); ?></p>
		
		<?php
		
		return;
	}

?>
 
<!-- You can start editing here. -->
 
<?php
	
	if ( have_comments() ) :
	
?>

		<h3 id="comments" class="comments-title"><b><?php comments_number( __( 'No Comments', 'responsy' ), __( '1 Comment', 'responsy' ), __( '% Comments', 'responsy' ) );?></b></h3>
 
		<div class="navigation">

			<div class="alignleft"><?php previous_comments_link() ?></div>
			
			<div class="alignright"><?php next_comments_link() ?></div>
			
		</div>
 
		<ol class="commentlist">

			<?php wp_list_comments( array( 'avatar_size' => 60 ) ); ?>
			
		</ol>
 
		<div class="navigation">

			<div class="alignleft"><?php previous_comments_link() ?></div>
			
			<div class="alignright"><?php next_comments_link() ?></div>
			
		</div>
		
<?php

	else : // this is displayed if there are no comments so far
	
?>
 
		<?php

			if ( 'open' == $post->comment_status ) :

		?>
		<!-- If comments are open, but there are no comments. -->
		 
		<?php

			else : // comments are closed
			
		?>

			<!-- do nothing -->
		 
		<?php

			endif;
			
		?>

<?php

	endif;
	
?>
 
<?php

	if ('open' == $post->comment_status) :
	
?>
 
		<div id="respond" class="respond row">

			<div class="span8">
				<h3 class="title"><b><?php echo __( 'Leave a Comment', 'responsy' ); ?></b></h3>
				<p><?php echo __( 'Please keep in mind that comments are moderated and <code>rel="nofollow"</code> is in use. So, please do not use a spammy keyword or a domain as your name, or it will be deleted. Let us have a personal and meaningful conversation instead.', 'responsy' ); ?></p>
			</div>
			
			<div class="span8">
		 
				<div class="cancel-comment-reply">
					<small><?php cancel_comment_reply_link(); ?></small>
				</div>
			 
				<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
					<p><?php echo __( 'You must be', 'responsy' ); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php echo __( 'logged in', 'responsy' ); ?></a> <?php echo __( 'to post a comment.', 'responsy' ); ?></p>
				<?php else : ?>
			 
				<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" class="validate-form">
			 
					<?php if ( $user_ID ) : ?>
				 
					<p><?php echo __( 'Logged in as', 'responsy' ); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account"><?php echo __( 'Log out &raquo;', 'responsy' ); ?></a></p>
				 
					<?php else : ?>
				 
					<p>
						<label for="author"><?php echo __( 'Your name', 'responsy' ); ?> <span class="required"><?php if ($req) echo "*"; ?></span></label>
						<input type="text" name="author" id="author" class="input required span5" placeholder="<?php echo __( 'tell us who you are?', 'responsy' ); ?>" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
					</p>
				 
					<p>
						<label for="email"><?php echo __( 'Your email', 'responsy' ); ?> <span class="required"><?php if ($req) echo "*"; ?></span></label>
						<input type="text" name="email" id="email" class="input required email span5" placeholder="<?php echo __( 'will not be published!', 'responsy' ); ?>" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
					</p>
				 
					<p>
						<label for="url"><?php echo __( 'Website', 'responsy' ); ?></label>
						<input type="text" name="url" id="url" class="input span5" placeholder="<?php echo __( 'your website (optional)', 'responsy' ); ?>" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
					</p>
				 
					<?php endif; ?>
				 
					<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
				 
					<p>
						<label for="comment"><?php echo __( 'Your message', 'responsy' ); ?> <span class="required"><?php if ($req) echo "*"; ?></span></label>
						<textarea name="comment" id="comment" class="input textarea required span5" placeholder="<?php echo __( 'share your words...', 'responsy' ); ?>" cols="100%" rows="10" tabindex="4" <?php if ($req) echo "aria-required='true'"; ?>></textarea>
					</p>
				 
					<p>
					<?php
						$comment_form_btn_color = get_option( 'comment_form_btn_color' );
						
						if ( $comment_form_btn_color == "White" ) { $comment_form_btn_color_out = "btn-default"; }
						elseif ( $comment_form_btn_color == "Blue" ) { $comment_form_btn_color_out = "btn-primary"; }
						elseif ( $comment_form_btn_color == "Sky Blue" ) { $comment_form_btn_color_out = "btn-info"; }
						elseif ( $comment_form_btn_color == "Green" ) { $comment_form_btn_color_out = "btn-success"; }
						elseif ( $comment_form_btn_color == "Yellow" ) { $comment_form_btn_color_out = "btn-warning"; }
						elseif ( $comment_form_btn_color == "Red" ) { $comment_form_btn_color_out = "btn-danger"; }
						else { $comment_form_btn_color_out = ""; }
					?>
						<input name="submit" type="submit" id="submit" class="btn <?php echo $comment_form_btn_color_out; ?> btn-large" tabindex="5" value="<?php echo __( 'Submit comment', 'responsy' ); ?>" />
						<?php comment_id_fields(); ?>
					</p>
					
					<?php do_action('comment_form', $post->ID); ?>
					
				</form>
			 
				<?php endif; // If registration required and not logged in ?>
			
			</div>
		</div>
 
<?php

	endif; // if you delete this the sky will fall on your head
	
?>